#ifndef __THRIFT_CLIENT_H__
#define __THRIFT_CLIENT_H__
#include <rapidjson/document.h>
#include "conn-pool/ConnPool.h"

class CThriftClient
{
public:
    CThriftClient(const rapidjson::Value &configValue);
    virtual ~CThriftClient();
public:
    bool thriftMethod(std::string& _return, const std::string &openId, const std::string& method, const std::string& reqArgs, bool isSyn);
private:
    void ConnPoolInit(const rapidjson::Value &configValue);
protected:
    CThriftConnPool *m_thriftConnPool;
};

#endif

